package com.yyks.cnbooking.dubbo.feign;

import com.yyks.cnbooking.dubbo.base.CNResponse;
import com.yyks.cnbooking.dubbo.param.roomsearch.CbRoomSearchParam;
import com.yyks.cnbooking.dubbo.result.roomsearch.CbRoomSearchData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 使用feign的方式获取数据信息
 */
@FeignClient(name = "cnbooking-dubbo-server")
public interface CnBookingFeignClient {

    @PostMapping("/room/search")
    CNResponse<CbRoomSearchData> roomSearch(@RequestBody CbRoomSearchParam param);

}
